package org.casper.service;

import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;

public class Client {
	public static void main(String[] args) {
		try {
			URL url = new URL("http://localhost:7777/ns?wsdl");
			QName qName = new QName("http://service.casper.org/", "MyServiceService");
			Service service = Service.create(url, qName);
			IMyService iMyService = service.getPort(IMyService.class);
			
			System.out.println(iMyService.add(12, 33));
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
	}
}
